Skip to main content

What’s New

Qrvey 8.7
Version 8.7 of the Qrvey platform is now available to customers! This version includes new features including area charts, the ability to pivot and export data, as well as numerous bug fixes and performance improvements.
Learn More
Qrvey 8.6
Version 8.6 of the Qrvey platform is now available to customers. This version includes several new feature enhancements and performance improvements.
Learn More
Required Update for 8.5.1
Attention 8.5.1 customers: for any 8.5.1 instance deployed prior to 08/05/2024, an update is required to ensure you are running the latest images.
Learn More
Qrvey 8.5
Version 8.5 (LTS) of the Qrvey platform is now available to customers. This version includes several new features and performance improvements.
Learn More
End-of-life Schedule
We've added a new article that lists the features and endpoints that have been scheduled for deprecation. All features and endpoints will be supported for (1) year after the release date of the LTS version that contains the alternative.
Learn More
Version: 8.3

Connecting Qrvey Platform to Your Secure Database Instance

This document explains the steps you need to take if you want to securely access your AWS RDS instance to load data into the Qrvey Business Analytics platform.

Prerequisites

  • You have Qrvey's Business Analytics platform (v5.0+) deployed in your AWS Account.
  • You have an RDS instance that is accessible via a security group.
  • For this document, we are assuming that the Qrvey platform’s infrastructure and RDS are in the same AWS Account, region and VPC. If that is not the case, please complete the VPC Peering steps first, to enable access between the accounts and/or VPCs.

Steps

  1. Navigate to the Lambda console. In this step, you will move the Lambda function inside your VPC (same as RDS for this example). Find a Lambda function called “< prefix >_dataload_drDBDatasourcePump”. Click on the function name to open the details.
  • From the Permissions tab, note the IAM Execution role.
    • From the IAM console, Add the IAM named policy called “AWSLambdaVPCAccessExecutionRole” to the Lambda execution role.
  • From the configuration tab of the Lambda function, find the VPC section. Click on Edit for VPC Settings. Default is “No VPC”.
    • Select Custom VPC
    • Pick the VPC you would like to use. For this example, it will be the same VPC as your RDS.
    • Select Applicable subnets. If you are not sure, pick all private subnets (only the private ones).
    • Select the security group that has access to the RDS.
    • Click on Save. It takes about 1-2 mins for these settings to apply.
2. Navigate to the VPC Console . Select the menu option for Endpoints. In this step, you will be creating 3 endpoints that will allow the Lambda function inside the VPC to access other AWS Services.
  • a. Create a new Endpoint and pick S3 (gateway type) and pick all route tables associated. Click Save.
  • b. Create a new Endpoint and pick DynamoDB (gateway type) and pick the all route tables associated. Click Save.
  • c. Create a new Endpoint and pick SQS. Since SQS uses an interface you would need to pick the VPC, subnets and Security groups. Pick the same values as you did in steps 1.b.ii, 1.b.iii and 1.b.iv. Add security groups with access to HTTP and HTTPS protocols.
  • d. Create a new Endpoint and pick Lambda. Since Lambda uses an interface you would need to pick the VPC, subnets and Security groups. Pick the same values as you did in steps 1.b.ii, 1.b.iii and 1.b.iv. Add security groups with access to HTTP and HTTPS protocols.
  • The rest of these steps only apply if your database is Redshift or Redshift Serverless:

  • e. Create a new Endpoint and pick STS. Since STS uses an interface, you would need to pick the VPC, subnets and security groups. Pick the same values as you did in steps 1.b.ii, 1.b.iii and 1.b.iv. Add security groups with access to HTTP and HTTPS protocols.
  • f. Create a new Endpoint and pick SecretsManager. Since SecretsManager uses an interface, you would need to pick the VPC, subnets and security groups. Pick the same values as you did in steps 1.b.ii, 1.b.iii and 1.b.iv. Add security groups with access to HTTP and HTTPS protocols.
  • g. Create a new Endpoint and pick Redshift-data. Since Redshift-data uses an interface, you would need to pick the VPC, subnets and security groups. Pick the same values as you did in steps 1.b.ii, 1.b.iii and 1.b.iv. Add security groups with access to HTTP and HTTPS protocols.

At this point, you should be able to connect to your RDS instance using the Qrvey Composer application by creating a connection and then creating a dataset using that connection.

VPC Peering Steps

Background

VPC Peering is necessary if the user’s RDS is in a different VPC, account or region.

  1. Ensure the VPC your database is in has a different IPv4 CIDR range than the default VPC. You can view the IPv4 CIDR range from the VPC Console in your AWS account. You will need to know this IPv4 CIDR range later, so keep a note of it. The IP range should not have any overlap with 172.31.0.0/16.

  2. On the left panel, select Peering Connections.

    • a. Select Create Peering Connection.
    • b. For VPC (Requester), select the VPC your database is in.
    • c. For VPC (Accepter), select the default VPC that Qrvey is installed in.
    • d. Confirm by clicking Create Peering Connection.
  3. Modify the routing table(s) for your database VPC:

    • a. Select each routing table with the same VPC ID and follow these steps for each:
    • i. Select Routes
    • ii. Select Edit routes
    • iii. Select Add route
    • iv. Add Destination *172.31.0.0/16* and for Target select the Peering Connection that you created in step 2.
    • v. Save routes
  4. Modify the routing table(s) for the default VPC that Qrvey is installed in.

    • a. Select each routing table with the same VPC ID and follow these steps for each:
    • i. Select Routes
    • ii. Select Edit routes
    • iii. Select Add route
    • iv. For Destination, enter the IPv4 CIDR range that you found in step 1, and for Target select the Peering Connection that you created in step 2.
    • iv. Save routes
  5. Add a new inbound rule in the RDS security group to allow traffic from the Qrvey Account CIDR.

  6. Enable DNS resolution for VPC peering in the Requester and Accepter side.

Now, you will be able to follow the steps above, for connecting Qrvey to your RDS instance.

Additional considerations

  • By moving the Lambda function inside a VPC, it does not have internet access. So if you would like to connect to external data sources (outside the VPC) then you would need to add an Internet Gateway or NAT Gateway depending on your use case. For internal data sources or services inside, you can repeat the steps to create a VPC Endpoint for that service or use security groups to access. To add an extra layer of security, whitelist in your database the IP of the Primary public IPv4 address of the NAT Gateway.

  • There may be additional charges for VPC endpoints.

  • Follow the next steps to avoid losing the VPC configuration in future updates and deployments:

    • Go to CloudFormation service on AWS console, find the Qrvey<prefix>DataRouterCodePipeline CloudFormation template. Click on the Update button, select Use current template and click on Next.
    • Put in the right values for SAMsecurityGroupIds (step 1.b.iv) and SAMvpcSubnetsId (step 1.b.iii) and deploy this change.
    • Once the CloudFormation template is updated, go to CodePipeline and click on the Release Change button for DataRouter pipeline. This will deploy the change to the Lambda function.